package com.sniper.mybatis.service.impl;

import com.sniper.model.AdminGroupRight;
import com.sniper.mybatis.dao.BaseDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adminGroupRightService")
public class AdminGroupRightServiceImpl extends BaseServiceImpl<AdminGroupRight> implements AdminGroupRightService {


    @Resource
    AdminGroupRightService groupRightService;

    @Resource
    @Override
    public void setDao(BaseDao<AdminGroupRight> dao) {
        super.setDao(dao);
    }

    @Override
    public int delete(String id) {
        groupRightService.delete("deleteByRight", id);
        return super.delete(id);
    }
}
